package com.dynabook.ems.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * BOM详情查询响应VO
 */
@Data
@ApiModel(value = "BOM详情信息", description = "BOM完整详情信息")
public class CreateWorkOrderVO {


    
    @ApiModelProperty(value = "成品型号")
    private String productName;
    /**
     * 成品名称
     */
    @ApiModelProperty("成品名称")
    private String finishProductName;
    
    @ApiModelProperty(value = "机型名称")
    private String machineName;
    
    @ApiModelProperty(value = "版本")
    private String version;


    
    @ApiModelProperty(value = "BOM详情列表")
    private List<BomDetailItem> bomDetails;

    /**
     * BOM详情项
     */
    @Data
    @ApiModel(value = "BOM详情项", description = "BOM中的具体零部件信息")
    public static class BomDetailItem {
        
        @ApiModelProperty(value = "详情ID")
        private String id;
        
        @ApiModelProperty(value = "样品型号")
        private String modelType;
        
        @ApiModelProperty(value = "样品名称")
        private String modelName;
        
        @ApiModelProperty(value = "样品数量")
        private String modelNumber;
        
        @ApiModelProperty(value = "样品单位")
        private String modelUnit;
        
        @ApiModelProperty(value = "样品分类")
        private String modelCategory;
        
        @ApiModelProperty(value = "备注")
        private String remark;

        @ApiModelProperty(value = "选择状态")
        private String detailStatus;

        @ApiModelProperty(value = "样品细分")
        private String category;

        @ApiModelProperty(value = "是否是第一条")
        private Integer isFirst;
    }
    

}